ul,
li {
  list-style: none;
}

@media screen and (max-width: 1350px) {
  .home-wrapper {
    .statistics-wrapper {
      flex-direction: column;
      row-gap: 12px;
      overflow: auto;

      .statistics {
        width: 100% !important;
        overflow: unset !important;
      }

      .sidebar {
        min-width: 100% !important;
        height: fit-content;
        overflow: unset !important;

        .content {
          grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;

          .to-do-list {
            .statistics {
              justify-content: space-around;
            }
          }
        }
      }
    }
  }
}

.home-wrapper {
  height: calc(100vh - 92px);
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;

  .statistics-wrapper {
    height: 100%;
    display: flex;
    column-gap: 12px;

    .statistics {
      flex: 1;
      display: flex;
      flex-direction: column;
      row-gap: 12px;
      width: 0;
      overflow: auto;

      &::-webkit-scrollbar {
        display: none;
      }

      .order {
        display: flex;
        column-gap: 12px;

        .order-item {
          flex: 1;
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 16px;
          color: #fff;
          row-gap: 6px;
          cursor: pointer;
          transition: all 0.2s ease-in;

          &:hover {
            filter: brightness(0.85);
          }

          p {
            font-weight: bold;
            font-size: 14px;
          }

          .num_info {
            display: flex;
            flex-direction: column;
            align-items: center;
            row-gap: 6px;

            .num {
              font-weight: bold;
              font-size: 24px;
            }
          }
        }

        .today {
          background-color: $secondColor3;
        }

        .month {
          background-color: $secondColor1;
        }

        .week {
          background-color: $secondColor2;
        }

        .all {
          background-color: $primaryColor;
        }
        .history {
          background-color: $deleteColor;
        }
      }

      .real-time-data {
        background-color: #fff;

        .title {
          display: flex;
          justify-content: space-between;
          padding: 12px;
          align-items: center;

          .text-icon {
            display: flex;
            column-gap: 5px;
            align-items: center;

            .iconfont {
              color: $primaryColor;
            }

            .text {
              font-size: 14px;
              font-weight: bold;
            }
          }

          .update-time {
            font-size: 12px;
            color: #777;
          }
        }

        .divider {
          border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        }

        .content {
          box-sizing: border-box;
          padding: 12px;
          display: grid;
          grid-template-columns: repeat(4, 1fr);
          column-gap: 24px;
          row-gap: 12px;

          .order_data {
            flex: 1;
            border-radius: 2px;
            display: flex;
            flex-direction: column;
            row-gap: 4px;

            .label_tip {
              border-bottom: 1px dotted #d4d4d4;
              padding-bottom: 2px;
              color: #000;
              display: inline;
              padding-left: 6px;
              font-size: 14px;
            }

            .tip {
              color: #777;
              padding-left: 6px;
            }

            .order_info {
              display: flex;
              align-items: center;
              column-gap: 12px;
              margin-left: 12px;

              .icon {
                padding: 2px;
                color: #fff;
                font-size: 20px;
                width: 26px;
                height: 26px;
                border-radius: 4px;
                display: flex;
                align-items: center;
                justify-content: center;

                .iconfont {
                  font-size: 20px;
                  width: 20px;
                  height: 20px;
                  line-height: 20px;
                }
              }

              .num {
                font-size: 16px;
                font-weight: bold;
              }
            }
          }

          .today-finish-order,
          .this-month-finish-order {
            .icon {
              background-color: $primaryColor;
            }

            .num {
              color: $primaryColor;
            }
          }

          .today-setled-order,
          .this-month-settled-order {
            .icon {
              background-color: $secondColor2;
            }

            .num {
              color: $secondColor2;
            }
          }

          .order-today-service-customer,
          .order-this-month-service-customer {
            .icon {
              background-color: $secondColor1;
            }

            .num {
              color: $secondColor1;
            }
          }

          .this-month-return-visit-order,
          .today-return-visit-order {
            .icon {
              background-color: $secondColor3;
            }

            .num {
              color: $secondColor3;
            }
          }
        }
      }

      .charts {
        display: flex;
        gap: 12px;
        height: fit-content;
        flex-wrap: wrap;
        flex: 1;
        height: 0;

        .map-chart {
          min-width: 500px;
          flex: 1;
          width: 0;
        }

        .pie-chart {
          flex: 1;
          min-width: 375px;
          width: 0;
        }

        .chart {
          display: flex;

          .info {
            width: 100%;
            outline: 1px solid #ebeef5;
            background-color: #fff;
            flex: 1;
            display: flex;
            flex-direction: column;

            .header {
              display: flex;
              justify-content: space-between;
              align-items: center;
              box-sizing: border-box;
              padding: 8px;

              .title_label {
                display: flex;
                align-items: center;
                column-gap: 4px;
  
                .iconfont {
                  color: $primaryColor;
                  font-size: 16px;
                }
              }
            }

            .divider {
              width: 100%;
              height: 1px;
              background-color: rgba(0, 0, 0, 0.04);
            }

            .map_box {
              min-height: 350px;
              height: 100%;
              display: flex;
              justify-content: center;
              align-items: center;
              box-sizing: border-box;
              padding: 6px 0;

              .chart-center {
                height: 350px;
                width: 100%;
                display: flex;
                justify-content: center;
              }
            }

            .footer_tip {
              padding: 14px 10px 14px;
              display: flex;
              color: #777;
              // background-color: hsla(0, 0%, 0%, 0.02);
              border-top: 1px dotted #d4d4d4;
              margin: 0 10px;
            }
          }
        }
      }
    }

    .sidebar {
      min-width: 400px;
      max-width: 400px;
      background-color: #fff;
      box-sizing: border-box;
      padding: 20px;
      display: flex;
      flex-direction: column;
      row-gap: 20px;
      overflow: auto;

      .content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;

        .quick-operate {
          box-sizing: border-box;

          .title {
            font-size: 14px;
            font-weight: bold;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            column-gap: 5px;
            border-bottom: 1px dotted #d4d4d4;
            padding-bottom: 4px;

            .iconfont {
              color: $primaryColor;
            }
          }

          .content {
            gap: 0;
            cursor: pointer;
            box-sizing: border-box;
            padding: 12px 18px 0 18px;
            row-gap: 12px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;

            .card {
              width: 100%;
              display: flex;
              align-items: center;
              flex-direction: column;

              .icon {
                background-color: rgba(240, 242, 245, 0.529);
                margin-bottom: 5px;
                border-radius: 6px;
              }

              .iconfont {
                width: 40px;
                height: 40px;
                font-size: 26px;
                color: #007cff;
                display: block;
                text-align: center;
                line-height: 40px;
              }

              .icon-order-set-2 {
                font-size: 36px;
              }

              .icon-add-good {
                font-size: 32px;
              }

              .icon-add-customer-1 {
                font-size: 32px;
              }

              .icon-add-order-2 {
                font-size: 30px;
              }

              span {
                color: #777;
              }
            }
          }
        }

        .to-do-list {
          display: flex;
          flex-direction: column;
          box-sizing: border-box;

          .title {
            display: flex;
            justify-content: space-between;

            .text-icon {
              display: flex;
              column-gap: 5px;

              .text {
                white-space: nowrap;
                font-size: 14px;
                font-weight: bold;
                height: 18px;
                line-height: 18px;
              }

              .iconfont {
                color: $primaryColor;
                font-size: 18px;
              }
            }

            .update-time {
              white-space: nowrap;
              font-size: 12px;
              color: #777;
            }
          }

          .divider {
            border-bottom: 1px dotted #d4d4d4;
            margin: 4px 0 12px 0;
          }

          .statistics {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            column-gap: 12px;

            .pointer {
              cursor: pointer;
            }
            .statistics-item {
              width: 100%;
              display: flex;
              flex-direction: column;
              align-items: center;
              row-gap: 2px;

              .content {
                width: 150px;
                display: flex;
                align-items: center;
                column-gap: 16px;
                padding-bottom: 4px;

                .iconfont {
                  width: 40px;
                  height: 40px;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  font-size: 26px;
                  border-radius: 4px;
                  color: #fff;
                  margin-left: 12px;
                }

                .num {
                  font-size: 16px;
                  font-weight: bold;
                }
              }

              .title {
                width: 150px;
              }
            }

            .pending-check-part {
              .content {
                border-bottom: 1px solid $primaryColor;

                .iconfont {
                  background-color: $primaryColor;
                }

                .num {
                  color: $primaryColor;
                }
              }
            }

            .pending-settle-order {
              .content {
                border-bottom: 1px solid $secondColor2;

                .iconfont {
                  background-color: $secondColor2;
                }

                .num {
                  color: $secondColor2;
                }
              }
            }

            .pending-check-cost {
              .content {
                border-bottom: 1px solid $secondColor1;

                .iconfont {
                  background-color: $secondColor1;
                }

                .num {
                  color: $secondColor1;
                }
              }
            }

            .abnormal-order {
              .content {
                border-bottom: 1px solid $deleteColor;

                .iconfont {
                  background-color: $deleteColor;
                }

                .num {
                  color: $deleteColor;
                }
              }
            }
          }
        }
      }

      .notice {
        box-sizing: border-box;
        width: 100%;

        .info {
          border-radius: 2px;
          background-color: #fff;

          .title {
            border-bottom: 1px dotted #d4d4d4;
            padding-bottom: 4px;

            h3 {
              font-size: 14px;
              display: flex;
              align-items: center;
              column-gap: 4px;
            }

            span {
              font-size: 12px;
              color: #007cff;
              cursor: pointer;
            }
          }

          .list {
            margin-top: 12px;

            .items {
              min-height: 120px;
              overflow-y: auto;
              height: 100%;

              li {
                margin-bottom: 10px;

                .tips {
                  display: inline-block;
                  font-size: 12px;
                  padding: 2px 6px;
                  margin-right: 10px;
                  background-color: #eaeff8;
                  color: #007cff;
                }

                .text {
                  display: block;
                  width: 200px;
                  font-weight: bold;
                  white-space: nowrap;
                  overflow: hidden;
                  text-overflow: ellipsis;
                }

                .time {
                  font-size: 12px;
                  color: #b5bdcb;
                }
              }
            }

            .footer {
              margin-top: 61px;

              span {
                font-size: 12px;
                color: #b5bdcb;
              }
            }
          }
        }
      }
    }
  }
}
